/*
 *  Copyright 2008-2010 www.jrails.org
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package app.controller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DataList {
	
	public static List<Map<String,Number>> getColumnData(){
		final List<Map<String,Number>> ls = new ArrayList<Map<String,Number>>();
		Map<String,Number> m = new HashMap<String, Number>();
		m.put("month", 1);
		m.put("total", 10000.00);
		ls.add(m);
		m = new HashMap<String, Number>();
		m.put("month", 2);
		m.put("total", 30000.00);
		ls.add(m);
		return ls;
	}
	
	public static List<Map<String,Number>> getBarData(){
		return getColumnData();
	}
	
	public static List<Map<String,Object>> getPieData(){
		final List<Map<String,Object>> ls = new ArrayList<Map<String,Object>>();
		Map<String,Object> m = new HashMap<String, Object>();
		m.put("season", "Summer");
		m.put("total",150);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("season", "Fall");
		m.put("total",245);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("season", "Winter");
		m.put("total",117);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("season", "Spring");
		m.put("total",184);
		ls.add(m);
		return ls;
	}
	
	public static List<Map<String,Object>> getLineData(){
		final List<Map<String,Object>> ls = new ArrayList<Map<String,Object>>();
		Map<String,Object> m = new HashMap<String, Object>();
		m.put("season", "Summer");
		m.put("total",150);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("season", "Fall");
		m.put("total",245);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("season", "Winter");
		m.put("total",117);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("season", "Spring");
		m.put("total",184);
		ls.add(m);
		return ls;
	}
	
	public static List<Map<String,Object>> getStackedData(){
		final List<Map<String,Object>> ls = new ArrayList<Map<String,Object>>();
		Map<String,Object> m = new HashMap<String, Object>();
		m.put("year", "2005");
		m.put("comedy",34000000);
		m.put("action", 23890000);
		m.put("drama",18450000);
		m.put("thriller",20060000);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("year", "2006");
		m.put("comedy",56703000);
		m.put("action", 38900000);
		m.put("drama",12650000);
		m.put("thriller",21000000);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("year", "2007");
		m.put("comedy",42100000);
		m.put("action", 50410000);
		m.put("drama",25780000);
		m.put("thriller",23040000);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("year", "2008");
		m.put("comedy",38910000);
		m.put("action", 56070000);
		m.put("drama",24810000);
		m.put("thriller",26940000);
		ls.add(m);
		return ls;
	}
	
	
	public static List<Map<String,Object>> getGridPanelData(){
		final List<Map<String,Object>> ls = new ArrayList<Map<String,Object>>();
		Map<String,Object> m = new HashMap<String, Object>();
		m.put("year", "2005");
		m.put("comedy",34000000);
		m.put("action", 23890000);
		m.put("drama",18450000);
		m.put("thriller",20060000);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("year", "2006");
		m.put("comedy",56703000);
		m.put("action", 38900000);
		m.put("drama",12650000);
		m.put("thriller",21000000);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("year", "2007");
		m.put("comedy",42100000);
		m.put("action", 50410000);
		m.put("drama",25780000);
		m.put("thriller",23040000);
		ls.add(m);
		m = new HashMap<String, Object>();
		m.put("year", "2008");
		m.put("comedy",38910000);
		m.put("action", 56070000);
		m.put("drama",24810000);
		m.put("thriller",26940000);
		ls.add(m);
		return ls;
	}
	
	
	
}
